
ProblemDetailForm = Ext.extend(Ext.Window,
{
    constructor : function(a) {
        Ext.applyIf(this, a);
        console.info(this.problemDetailId);
        this.initUIComponents();
        ProblemDetailForm .superclass.constructor.call(this, {
            layout : "fit",
            id : this.inputFormName,
            items : yearGridFormPanel,
            modal : true,
            bodyStyle : "padding:2px;",
            buttonAlign : "center",
            buttons : yearGridFormButtons,
            title : "问题明细",
            iconCls : "menu-flowWait",
            width : 620,
            height : 450
        });
    },
    //初始化数据
    initUIComponents : function() {
        createyeargridform({
            operation:this,
            form:{
                saveUrl: __ctxPath+"/safecheckplan/saveProblemDetail.do",
                items:[
                {
                    id : "problemDetail.id",
                    name : "problemDetail.id",
                    xtype : "hidden",
                    value : this.id == null ? "": this.id
                },
                {
                    name : "problemDetail.problemDetailId",
                    xtype : "hidden",
                    id : "problemDetail.problemDetailId",
                    value : this.problemDetailId == null ? "" : this.problemDetailId
                },{
				layout : "column",
				//      border:false,
				bodyStyle : "padding:5px;",
				items : [
						{
							layout : "form",
							columnWidth : .5,
							border : false,
							//                        True表示为显示出面板body元素的边框，false则隐藏
							defaultType : "textfield",
							items : [ {
								fieldLabel : '责任人'
										+ '<font color=red>*</font>',
								id : "problemDetail.dutyPerson",
								name : "problemDetail.dutyPerson",
								maxLength : 80,
								width : 146,
								allowBlank : false,
								blankText : "责任人不能为空！"
							} ]
						},
						{
							layout : "form",
							columnWidth : 1.,
							border : false,
							//                        True表示为显示出面板body元素的边框，false则隐藏
							defaultType : "textfield",
							items : [ {
								fieldLabel : '问题描述',
								xtype : 'textarea',
								name : "problemDetail.problemDescribe",
								width : 448,
								
							} ]
						},
						{
							layout : "form",
							columnWidth : 1.,
							border : false,
							//                        True表示为显示出面板body元素的边框，false则隐藏
							defaultType : "textfield",
							items : [ {
								fieldLabel : '措施',
								xtype : 'textarea',
								name : "problemDetail.measure",
								width : 448,
								
							} ]
						},
						{
							layout : "form",
							columnWidth : 1.,
							border : false,
							//                        True表示为显示出面板body元素的边框，false则隐藏
							defaultType : "textfield",
							items : [ {
								fieldLabel : '解决情况',
								xtype : 'textarea',
								name : "problemDetail.solveCondition",
								width : 448,
								
							} ]
						}
						
						 ]
                }
				]
            },
            loadData:{
                getUrl:__ctxPath +"/safecheckplan/getProblemDetail.do",
                preName : "problemDetail"
            },
            isShow : this.isShow
        });
    }
});
